﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace WMS.RBAC.Roles
{
	public class RoleAppService : IRoleAppService
	{
		private readonly IRepository<Permission, int> _permissionRepository;
		private readonly IRepository<Role, int> _roleRepository;
		private readonly IRepository<RolePermission, int> _rolePermissionRepository;
		private readonly IRepository<User, int> _userRepository;
		private readonly IRepository<UserRole, int> _userRoleRepository;

		public RoleAppService(IRepository<Permission, int> permissionRepository, IRepository<Role, int> roleRepository, IRepository<RolePermission, int> rolePermissionRepository, IRepository<User, int> userRepository, IRepository<UserRole, int> userRoleRepository)
		{
			_permissionRepository = permissionRepository;
			_roleRepository = roleRepository;
			_rolePermissionRepository = rolePermissionRepository;
			_userRepository = userRepository;
			_userRoleRepository = userRoleRepository;
		}
	}
}
